<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Login - SAA</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>

    </h:head>
    <h:body>
        <h:form title="Login" id="login">
            <h:message for="emailInexistente" />
            <h:message for="senhaIncorreta" />
            <h:message for="senhaEnviada" />
            <h:outputLabel for="email" value="Email:"/>
            <h:inputText id="email" value="#{login.email}" />
            <h:outputLabel for="senha" value="Senha:"/>
            <h:inputSecret id="senha" value="#{login.senha}" />
            <h:commandButton value="Entrar" action="#{login.autenticar()}" />
            <br />
            <h:link value="Recuperaçao de senha" outcome="senha.xhtml" title="Recuperaçao de senha" />
            <br />
            <h:link value="Criar cadastro" outcome="cadastro.xhtml" title="Criar cadastro" />
        </h:form>
    </h:body>


































</html>

